<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件处理函数</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="app">
    <span>第{{pno}}页/共{{pageCount}}页</span>
    <button v-show="pno!=pageCount" v-on:click="pageAdd()">点击加载更多</button>
    <h3 v-show="pno==pageCount">没有更多了</h3>
</div>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            pno: 1,
            pageCount: 10
        },
        methods: {
            pageAdd() {
                this.pno++;
            }
        }
    })
</script>
</body>
</html>